package me.hetong.caigou;

import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class Config implements Serializable {
    private int leftWidth = 180;// 左侧菜单宽度
    private int rightWidth = 940;// 右侧主显示区域宽度
    private int height = 630;// 窗口高度
    private String leftSideActiveBackgroundColor = "#8BA6EBaa";// 左侧菜单激活时背景颜色
    private int padding = 5;
    private int space = 5;
    private boolean soundPlay = true;// 是否开启音效
    private int gridSize = 40;// 棋盘方格大小
    private int moveAnimateTime = 300;// 棋子走子动画时间,毫秒
    private int messageWaitingTime = 2500;// 消息停留时间,毫秒
    private int messageInTime = 200;// 消息出现动画时间,毫秒
    private int messageOutTime = 200;// 消息出现动画时间,毫秒
    private String backgroundColor = "linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);";// 主程序背景色
    private String backgroundColorMessage = "linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);";// 消息提示框背景颜色
    private String backgroundColorBoardActual = "#879569";// 实战棋盘背景颜色
    private String backgroundColorBoardInfer = "#888888";// 推演棋盘背景颜色
    private int editPanGridSize = 48;// 编辑局面棋子方格大小
    private int trendChartHeight = 120;// 趋势图高度
    private int matchPanWidth = 300;// 比赛棋盘显示宽度
    private int pageSize = 10;// 每页显示棋谱条数
    private String enginePath = "/Users/hetong/person/中国象棋/Pikafish.2023-03-05/MacOS/pikafish";

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
